package org.summer.lawyer.domain;

import org.summer.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Date;

/**
 * 站内消息对象 message
 *
 * @author summer
 * @date 2024-07-23
 */
@Data
@TableName("message")
public class Message  {


    /**
     * 消息id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;



    /**
     * 消息标题
     */
    @TableField(value = "title")
    private String title;



    /**
     * 消息内容
     */
    @TableField(value = "msg_content")
    private String msgContent;



    /**
     * 消息接收人Id
     */
    @TableField(value = "receiver_id")
    private Long receiverId;



    /**
     * 消息接收人姓名
     */
    @TableField(value = "receiver_name")
    private String receiverName;



    /**
     * 消息接收人头像
     */
    @TableField(value = "receiver_avatar")
    private String receiverAvatar;



    /**
     * 订单ID
     */
    @TableField(value = "order_id")
    private Long orderId;



    /**
     * 服务名称
     */
    @TableField(value = "spu_name")
    private String spuName;



    /**
     * 消息状态（0未读，1已读）
     */
    @TableField(value = "status")
    private String status;



    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;



    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;



    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;



    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;



    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 用于追踪的订单编号
     */
    @TableField(value = "tracking_number")
    private String trackingNumber;




}